<template>
  <div class="main">
    <div class="back">
      <img src="@/assets/images/background-10.png" alt="" />
    </div>
    <div class="inner">
      <div class="title wow fadeInDown fs-28">{{ $t('ismsg.roadMap.title') }}</div>
      <div class="innerImg">
        <div class="stepBox wow fadeInDown stepBox1 hidden-xs-only">
          <h1 class="fs-12">{{ $t('ismsg.roadMap.times[1].name') }}</h1>
          <div class="stepInner">
            <p class="fs-12">{{ $t('ismsg.roadMap.times[1].text') }}</p>
            <img src="@/assets/images/buba.png" alt="" />
          </div>
        </div>
        <div class="lineBox">
          <div class="line"></div>
          <div class="dots hidden-sm-and-up">
            <span></span>
            <span></span>
            <span></span>
          </div>
          <div class="step step1 hidden-xs-only">
            <span><img src="@/assets/images/1.png" alt="" /></span>
          </div>
          <div class="step step2 hidden-xs-only">
            <span><img src="@/assets/images/2.png" alt="" /></span>
          </div>
          <div class="step step3 hidden-xs-only">
            <span><img src="@/assets/images/x.png" alt="" /></span>
          </div>
        </div>
        <div class="stepCont">
          <div class="stepBox wow fadeInLeft stepBox2">
            <h1 class="fs-12">{{ $t('ismsg.roadMap.times[0].name') }}</h1>
            <div class="stepInner">
              <p class="fs-12">{{ $t('ismsg.roadMap.times[0].text') }}</p>
              <img src="@/assets/images/logo1.png" alt="" />
            </div>
          </div>
          <div class="stepBox wow fadeInLeft stepBox1 hidden-sm-and-up">
            <h1 class="fs-12">{{ $t('ismsg.roadMap.times[1].name') }}</h1>
            <div class="stepInner">
              <p class="fs-12">{{ $t('ismsg.roadMap.times[1].text') }}</p>
              <img src="@/assets/images/buba.png" alt="" />
            </div>
          </div>
          <div class="stepBox wow fadeInLeft stepBox3">
            <h1 class="fs-12">{{ $t('ismsg.roadMap.times[2].name') }}</h1>
            <div class="stepInner">
              <p class="fs-12">{{ $t('ismsg.roadMap.times[2].text') }}</p>
              <img src="@/assets/images/timeLine2.png" alt="" />
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style lang="scss" scoped>
#RoadMap {
  width: 100%;
}
.main {
  padding: 8vh 0;
  position: relative;

  .back {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.15;

    img {
      width: 100%;
      height: 100%;
    }
  }
}

@mixin dot {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background-color: #fff;
  position: absolute;
  left: 26px;
}

.inner {
  width: 80%;
  padding: 5% 3%;
  margin: 0 auto;
  background: url('@/assets/images/whiteBg.png') no-repeat left top;
  background-size: 100% 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 9;

  .title {
    font-size: 40px;
    font-weight: 700;
    font-family: MFBanHei_Noncommercial-Regular;
    background-image: linear-gradient(to bottom, #f99b36, #f35845);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 2vh;
  }

  .innerImg {
    width: 100%;
    min-height: 25vh;
    position: relative;

    .lineBox {
      width: 100%;
      margin: 20px 0;
      position: relative;

      .line {
        width: 100%;
        height: 6px;
        background-image: linear-gradient(90deg, #fed145 0%, #bd6349 100%), linear-gradient(#fed145, #fed145);
        background-blend-mode: normal, normal;
        box-shadow: 0px 3px 16px 0px rgba(116, 55, 46, 0.11);
        border-radius: 3px;
      }

      .step {
        width: 62px;
        height: 74px;
        position: absolute;
        z-index: 3;

        span {
          position: relative;
        }

        img {
          width: 100%;
        }
      }

      .step1 {
        top: -65px;
        left: 15%;

        span::before {
          @include dot();
          top: 10px;
          border: 2px solid #bd6349;
        }
      }

      .step2 {
        top: 10px;
        left: 45%;

        span::before {
          @include dot();
          top: -66px;
          border: 2px solid #dc9847;
        }
      }

      .step3 {
        top: -65px;
        left: 80%;

        span::before {
          @include dot();
          top: 10px;
          border: 2px solid #dc9847;
        }
      }
    }

    .stepCont {
      display: flex;
      justify-content: space-between;
      padding: 0 2%;
    }

    .stepBox {
      width: 29.875vw;
      padding: 8px 10px;
      border-radius: 10px;
      border: solid 3px #fed145;

      .stepInner {
        display: flex;
        align-items: center;
      }

      h1 {
        color: #572815;
        font-size: 20px;
      }

      p {
        color: #3f3f3f;
        font-size: 16px;
      }

      img {
        max-width: 130px;
      }
    }

    .stepBox1 {
      margin: 0 auto;
    }
  }
}

@media screen and (max-width: 992px) {
  .stepBox {
    width: 36.875vw !important;
  }
}

@media screen and (max-width: 768px) {
  .main {
    padding: 5vh 0;
  }

  .inner {
    width: 90%;
    padding: 5% 3% 8%;
    border-radius: 20px;
    overflow: hidden;

    .title {
      // width: 80%;
      font-size: 26px;
      text-align: center;
    }

    .innerImg {
      display: flex;
      justify-content: flex-start;

      .lineBox {
        width: auto;

        .dots {
          width: 8px;
          height: 100%;
          display: flex;
          flex-direction: column;
          justify-content: space-around;
          position: absolute;
          top: 0;
          left: -2px;

          span {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 10px;
            background-color: #fff;
            font-size: 12px;

            &:first-of-type {
              border: 2px solid #bd6349;
            }

            &:nth-of-type(2) {
              border: 2px solid #dc9847;
            }

            &:last-of-type {
              border: 2px solid #dc9847;
            }
          }
        }

        .line {
          width: 6px;
          height: 100%;
          background-image: linear-gradient(to bottom, #fed145 0%, #bd6349 100%);
          background-blend-mode: normal, normal;
          box-shadow: 0px 3px 16px 0px rgba(116, 55, 46, 0.11);
          border-radius: 3px;
        }
      }

      .stepCont {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        padding-left: 4%;

        .stepBox {
          width: 95% !important;

          img {
            width: 62px;
          }

          &:first-of-type {
            img {
              width: 65px;
              position: relative;
              top: 6px;
            }
          }
        }

        .stepBox1 {
          margin: 20px 0;
        }
      }
    }
  }
}
</style>
